package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.tust.app.dao.TPermissionMapper;
import com.tust.app.domain.TPermission;
import java.util.List;
import com.tust.app.service.TPermissionService;
@Service
public class TPermissionServiceImpl implements TPermissionService{

    @Resource
    private TPermissionMapper tPermissionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tPermissionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TPermission record) {
        return tPermissionMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TPermission record) {
        return tPermissionMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TPermission record) {
        return tPermissionMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TPermission record) {
        return tPermissionMapper.insertSelective(record);
    }

    @Override
    public TPermission selectByPrimaryKey(Integer id) {
        return tPermissionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TPermission record) {
        return tPermissionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TPermission record) {
        return tPermissionMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TPermission> list) {
        return tPermissionMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TPermission> list) {
        return tPermissionMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TPermission> list) {
        return tPermissionMapper.batchInsert(list);
    }

}
